{extend name="/base" /}

{block name="main"}
{volist name="res" id="vo"}
<div class="col-md-10">
  
  <div class="row">
    <div class="col-md-12">
        <div class="card">
            <div class="card-body">
                <form action="{:url('activity/update1',['activity_id'=>$vo.activity_id])}" method="POST"  enctype="multipart/form-data">
                    <div class="form-group">
                        <label for="usr">活动标题</label>
                        <input type="text" class="form-control" id="usr" name="title" value="{$vo.title}" required>
                    </div>
                    <div class="form-group">
                        <label for="comment">活动简介</label>
                        <textarea class="form-control" rows="3" id="comment" name="introduction"  required>{$vo.introduction}</textarea>
                    </div>
                    <div class="form-group">
                        <label for="comment">活动详情</label>
                        <textarea class="form-control" rows="7" id="" name="details"required>{$vo.details}</textarea>
                    </div>
                    <div class="form-group">
                        <div class="custom-file">
                            <input type="file" class="custom-file-input" id="customFile" name="pic" required>
                            <label class="custom-file-label" for="customFile">选择文件</label>
                        </div>
                    </div>

                    <button type="submit" class="btn btn-primary">修改</button>
                </form>

            </div>
        </div>
    </div>
  </div>

</div>
{/volist}
{/block}